package com.face.server.entity;

import com.arcsoft.AFR_FSDK_FACEMODEL;
import com.util.SDKUtils;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
@Data
public class FaceModel extends Entity {

    private String imageName;

    private String fileId; // 图片id

    private byte[] content; // 特征向量

    private int size;

    public AFR_FSDK_FACEMODEL toModel() {
        return AFR_FSDK_FACEMODEL.build(size, content);
    }
}
